package com.ssy.lingxi.order.model.bo;

import com.fasterxml.jackson.annotation.JsonProperty;
import org.springframework.util.StringUtils;

import java.io.Serializable;

/**
 * 会员支付参数Json对象
 * @author 万宁
 * @version 2.0.0
 * @date 2021-08-11
 */
public class PaymentParameterBO implements Serializable {
    private static final long serialVersionUID = 3908809182366250035L;

    public PaymentParameterBO() {
    }

    public PaymentParameterBO(Integer code, String value, String remark) {
        this.code = code;
        this.value = value;
        this.remark = StringUtils.hasLength(remark) ? remark : "";
    }

    /**
     * 参数值枚举，定义在 OrderPaymentParameterEnum 中
     */
    @JsonProperty("c")
    private Integer code;

    /**
     * 参数值
     */
    @JsonProperty("v")
    private String value;

    /**
     * 参数描述
     */
    @JsonProperty("r")
    private String remark;

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }
}
